package com.edu.core;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class SpringApplication {


    public static ApplicationContext run(Class<?> mainclass){
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(mainclass);
        return  applicationContext;
    }
}
